<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html>
 <head>
<base href="<%=basePath%>">

<title>My JSP 'AfterLogin.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
 <style type="text/css">
BODY {
	MARGIN: 0px
}

P {
	MARGIN: 0px
}

BODY {
	COLOR: #000;
	BACKGROUND-COLOR: #fff
}

BODY {
	FONT-SIZE: 12px;
	LINE-HEIGHT: 150%;
	FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"
}

TABLE {
	FONT-SIZE: 12px;
	LINE-HEIGHT: 150%;
	FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"
}

INPUT {
	FONT-SIZE: 12px;
	FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"
}

SELECT {
	FONT-SIZE: 12px;
	FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"
}

TEXTAREA {
	FONT-SIZE: 12px;
	FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"
}

A:link {
	COLOR: #036;
	TEXT-DECORATION: none
}

A:visited {
	COLOR: #036;
	TEXT-DECORATION: none
}

A:hover {
	COLOR: #f60;
	TEXT-DECORATION: underline
}

A.menuChild:link {
	COLOR: #036;
	TEXT-DECORATION: none
}

A.menuChild:visited {
	COLOR: #036;
	TEXT-DECORATION: none
}

A.menuChild:hover {
	COLOR: #f60;
	TEXT-DECORATION: underline
}

A.menuParent:link {
	COLOR: #000;
	TEXT-DECORATION: none
}

A.menuParent:visited {
	COLOR: #000;
	TEXT-DECORATION: none
}

A.menuParent:hover {
	COLOR: #f60;
	TEXT-DECORATION: none
}

TABLE.position {
	WIDTH: 100%
}

TR.position {
	HEIGHT: 25px;
	BACKGROUND-COLOR: #f4f7fc
}

TD.position {
	BORDER-RIGHT: #adceff 1px solid;
	PADDING-LEFT: 20px;
	BORDER-BOTTOM: #adceff 1px solid
}

TABLE.listTable {
	WIDTH: 98%;
	BACKGROUND-COLOR: #b1ceee
}

TR.listHeaderTr {
	FONT-WEIGHT: bold;
	HEIGHT: 25px;
	BACKGROUND-COLOR: #ebf4fd;
	TEXT-ALIGN: center
}

TR.listTr {
	HEIGHT: 25px;
	BACKGROUND-COLOR: #fff;
	TEXT-ALIGN: center
}

TR.listAlternatingTr {
	HEIGHT: 25px;
	BACKGROUND-COLOR: #fffdf0;
	TEXT-ALIGN: center
}

TR.listFooterTr {
	HEIGHT: 30px;
	BACKGROUND-COLOR: #ebf4fd;
	TEXT-ALIGN: center
}

TABLE.editTable {
	WIDTH: 98%;
	BACKGROUND-COLOR: #b1ceee
}

TR.editHeaderTr {
	HEIGHT: 25px;
	BACKGROUND-COLOR: #ebf4fd
}

TD.editHeaderTd {
	PADDING-LEFT: 50px;
	FONT-WEIGHT: bold
}

TR.editTr {
	HEIGHT: 30px
}

TD.editLeftTd {
	WIDTH: 150px;
	BACKGROUND-COLOR: #fffdf0;
	TEXT-ALIGN: center
}

TD.editRightTd {
	PADDING-LEFT: 10px;
	BACKGROUND-COLOR: #fff
}

TR.editFooterTr {
	HEIGHT: 40px;
	BACKGROUND-COLOR: #ebf4fd
}

TD.editFooterTd {
	PADDING-LEFT: 150px
}
</style> 
</head>
<script type="text/javascript">
	/* var c=$("#chakan");
	var go=$("#gong");
	var jub=$("#jubao"); */

	function ju() {
		window.location = "showReport";
	}
	function cha() {

		window.location = "showCustomer.action";

	}


	function jiben() {
		window.location = "industryinformation.action";
	}

	function g() {
		window.location = "showindustry.action";
	}

	function quan() {
		window.location = "showcuslimit";
	}

	function Order() {
		window.location = "selectBydate";
	}
	function cost(){
	   window.location="allindusYesterdaycost.action";
	}
	
   function LookCost(indusid){
    window.location="showOneindusYesterday?indusid="+indusid;
   }
	function LOOKorder(indusid) {
	//alert("gongchangid:"+indusid);
		window.location = "selectindusOrderById?indusid=" + indusid;
	}
	function expand(el) {
		childObj = document.getElementById("child" + el);
		if (childObj.style.display == 'none') {
			childObj.style.display = 'block';
		} else {
			childObj.style.display = 'none';
		}
		return;
	}
	function exit(){
		 if(window.confirm("确定要退出么")){
		 	window.location="SessionDestoryAction";
		 }else{
		 }
	}
	$(document).ready(function(){
	  init();
	});
	function init(){
	var url = document.location;
	var showReport = /\/showReport/;//举报管理
	var showCustomer = /\/showCustomer/;//用户管理--查看用户信息
	var serchcustomer = /\/serchcustomer/;
	var cusdetail = /\/cusdetail/;
	var showcuslimit = /\/showcuslimit/;//用户管理--查看用户权限
	var updatelimit = /\/updatelimit/;
	var searchcuslimit = /\/searchcuslimit/;
	var industryinformation = /webbei\/industryinformation/;//工厂管理--工厂基本信息
	var gotoindus = /\/gotoindus/;
	var addindustry = /\/addindustry/;
	var indusdetail = /\/indusdetail/;
	var getoneindus = /\/getoneindus/;
	var updateindus = /\/updateindus/;
	var showOrderinfo = /\/showOrderinfo/;//工厂管理--工厂订单信息
	var selectBydate = /\/selectBydate/;
	var orderdetail = /\/orderdetail/;
	var allindusYesterdaycost = /\/allindusYesterdaycost/;//工厂管理--工厂成本管理
	var induscostByDateAndName = /\/induscostByDateAndName/;
	var newBrandAction = /\/newBrandAction/;//车型管理--增加新的品牌
	var GetAllBrandAction = /\/GetAllBrandAction/;//车型管理--增加新的车型
	var GetAllBrandForNewCarPic = /\/GetAllBrandForNewCarPic/;//车型管理--增加新的车图
	var GetAllBrandForDeleteAction = /\/GetAllBrandForDeleteAction/;//车型管理--删除车型图片
	var DeleteBrandSeriesAction = /\/DeleteBrandSeriesAction/;//车型管理--删除品牌系列
	var newProductAction = /\/newProductAction/;//产品管理--增加新的产品
	var GetAllProductsAction = /\/GetAllProductsAction/;//增加新的款式
	var GetAllProAction = /\/GetAllProAction/;//增加款式图片
	var GetAllProForDelAction = /\/GetAllProForDelAction/;//删除产品
	var GetAllProForDelPicAction = /\/GetAllProForDelPicAction/;//删除款式图片
	var LeadtoUpdataPwdJSPAction = /\/LeadtoUpdataPwdJSPAction/;//系统管理--修改口令
		if(showReport.test(url)){//举报管理
		  expand(1);
		  $("#1_1").css("color","red");
		}
		if(showCustomer.test(url)){//用户管理--查看用户信息
		  $("#2_1").css("color","red");
		  expand(2);
		}
		if(cusdetail.test(url)){
		  $("#2_1").css("color","red");
		  expand(2);
		}
		if(serchcustomer.test(url)){
		  $("#2_1").css("color","red");
		  expand(2);
		}
		if(showcuslimit.test(url)){//用户管理--查看用户权限
		  $("#2_2").css("color","red");
		  expand(2);
		}
		if(updatelimit.test(url)){
		  $("#2_2").css("color","red");
		  expand(2);
		}
		if(searchcuslimit.test(url)){
		  $("#2_2").css("color","red");
		  expand(2);
		}
		if(industryinformation.test(url)){//工厂管理--工厂基本信息
		  $("#3_1").css("color","red");
		  expand(3);
		}
		if(gotoindus.test(url)){
		  $("#3_1").css("color","red");
		  expand(3);
		}
		if(addindustry.test(url)){
		$("#3_1").css("color","red");
		  expand(3);
		}
		if(indusdetail.test(url)){
		$("#3_1").css("color","red");
		  expand(3);
		}
		if(getoneindus.test(url)){
		$("#3_1").css("color","red");
		  expand(3);
		}
		if(updateindus.test(url)){
		$("#3_1").css("color","red");
		  expand(3);
		}
		if(showOrderinfo.test(url)){//工厂管理--工厂订单信息
		$("#3_2").css("color","red");
		  expand(3);
		}
		if(selectBydate.test(url)){
		$("#3_2").css("color","red");
		  expand(3);
		}
		if(orderdetail.test(url)){
		$("#3_2").css("color","red");
		  expand(3);
		}
		if(allindusYesterdaycost.test(url)){//工厂管理--工厂成本管理
		$("#3_3").css("color","red");
		  expand(3);
		}
		if(induscostByDateAndName.test(url)){
		$("#3_3").css("color","red");
		  expand(3);
		}
		if(newBrandAction.test(url)){//车型管理--增加新的品牌
		$("#4_1").css("color","red");
		  expand(8);
		}
		if(GetAllBrandAction.test(url)){//车型管理--增加新的车型
		$("#4_2").css("color","red");
		  expand(8);
		}
		if(GetAllBrandForNewCarPic.test(url)){//车型管理--增加新的车图
		$("#4_3").css("color","red");
		  expand(8);
		}
		if(GetAllBrandForDeleteAction.test(url)){//车型管理--删除车型图片
		$("#4_4").css("color","red");
		  expand(8);
		}
		if(DeleteBrandSeriesAction.test(url)){//车型管理--删除品牌系列
		$("#4_5").css("color","red");
		  expand(8);
		}
		//产品管理
		if(newProductAction.test(url)){
		$("#5_1").css("color","red");
		  expand(5);
		}
		if(GetAllProductsAction.test(url)){
		$("#5_2").css("color","red");
		  expand(5);
		}
		if(GetAllProAction.test(url)){
		$("#5_3").css("color","red");
		  expand(5);
		}
		if(GetAllProForDelAction.test(url)){
		$("#5_4").css("color","red");
		  expand(5);
		}
		if(GetAllProForDelPicAction.test(url)){
		$("#5_5").css("color","red");
		  expand(5);
		}
		
		if(LeadtoUpdataPwdJSPAction.test(url)){//系统管理--修改口令
		$("#6_1").css("color","red");
		  expand(0);
		}
		
	}
	
</script> 


	<!-- <FRAME name=header src="header.jsp" frameBorder=0 noResize scrolling=no> -->

	<%-- 	<font>您已登录,用户名为：${mana.managersName}</font>
		<br />
		<br />
		<br /> --%>
		
<body>	
		<c:if test="${mana.managersLimit==0}">

	<table height="100%" cellSpacing=0 cellPadding=0 width=170
		background=images/menu_bg.jpg border=0>
		<tr>
			<td vAlign="top" align="center">
				<table cellSpacing=0 cellPadding=0 width="100%" border=0>

					<tr>
						<td height=10></td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>

					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(1) href="javascript:void(0);">举报管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child1 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild  href="showReport" target=_top id="1_1">查看举报信息</A>
						</td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(2) href="javascript:void(0);">用户管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child2 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="javascript:void(0);" onclick="cha()" target=_top id="2_1">查看用户信息</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="javascript:void(0);" onclick="quan()" target=_top id="2_2">查看用户权限</A>
						</td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(3) href="javascript:void(0);">工厂管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child3 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="javascript:void(0);" onclick="jiben()" target=_top id="3_1">工厂基本信息</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="javascript:void(0);" onclick="Order()" target=_top id="3_2">工厂订单管理</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="javascript:void(0);" onclick="cost()" target=_top id="3_3">工厂成本管理</A>
						</td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>

					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(8) href="javascript:void(0);">车型管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child8 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="newBrandAction" target=_top id="4_1">增加新的品牌</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="GetAllBrandAction" target=_top id="4_2">增加新的车型</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="GetAllBrandForNewCarPic" target=_top id="4_3">增加新的车图</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="GetAllBrandForDeleteAction" target=_top id="4_4">删除车型图片</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="DeleteBrandSeriesAction" target=_top id="4_5">删除品牌系列</A>
						</td>
					</tr>
				</table>
				
				
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(5) href="javascript:void(0);">产品管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child5 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="newProductAction"  target=_top id="5_1">增加新的产品</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="GetAllProductsAction" target=_top id="5_2">增加新的款式</A>
						</td>
					</tr>
					
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>

						<td><A class=menuChild href="GetAllProAction" target=_top id="5_3">增加款式图片</A></td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="GetAllProForDelAction"  target=_top id="5_4">删除产品款式</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="GetAllProForDelPicAction" target=_top id="5_5">删除款式图片</A>
						</td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(6) href="javascript:void(0);">审核信息</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child6 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="getAllNotReviewCustomAction"  target=_top id="6_1">审核定制信息</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="getAllReviewCustomAction"  target=_top id="6_2">决定分享定制</A>
						</td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(0) href="javascript:void(0);">系统管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child0 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>

					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="LeadtoUpdataPwdJSPAction" target=_top id="6_1">修改口令</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><!-- <A class=menuChild
							onclick="if (confirm('确定要退出吗？')) 
							return true; 
							else return false;"
							href="http://www.865171.cn" target=_top>退出系统</A> -->
							<a class=menuChild  onclick="exit()" id="6_2">退出系统</a>
						</td>
					</tr>
				</table>
			</td>
			<td width=1 bgColor=#d1e6f7></td>
		</tr>
	</table>
		</c:if>

		<c:if test="${mana.managersLimit==1}">
  

			
			<table cellSpacing=0 cellPadding=0 width=150 border=0>

					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(5) href="javascript:void(0);">工厂管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child5 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>

					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild  href="javascript:void(0);" target=_top onclick="LOOKorder('${mana.industryId}')" target=_top>查看订单</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild
							href="javascript:void(0);"
						onclick="LookCost('${mana.industryId}')" target=_top>成本管理</A>
						</td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(0) href="javascript:void(0);">系统管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child0 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="LeadtoUpdataPwdJSPAction" target=main>修改口令</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><!-- <A class=menuChild
							onclick="if (confirm('确定要退出吗？')) 
							return true; 
							else return false;"
							href="http://www.865171.cn" target=_top>退出系统</A> -->
							<a class=menuChild  onclick="exit()">退出系统</a>
						</td>
					</tr>
					</table>
	
		</c:if>
	  <!-- <div style="margin-left: 300;margin-top: 50">
			<font size="50" color="blue">欢迎使用网贝公司管理系统</font>
		</div> -->
		</body>	
		</html> 